/*
 * @Author: 专送Pro
 * @Date: 2019-08-23 13:17:18
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-02 13:39:20
 * @Description: 新增表单配置文件
 */
export default {
  data() {
    return {};
  },
  computed: {
    formProps() {
      return [
        {
          forms: [
            {
              label: "通知标题",
              type: "text",
              key: "title",
              span: 22,
              placeholder: "请输入通知标题",
              maxlength: 20,
              rules: {
                required: true,
                trigger: "blur",
                message: "通知标题不能为空"
              }
            },
            {
              label: "通知对象",
              type: "select",
              key: "membername",
              span: 22,
              placeholder: "请选择通知对象",
              options: {
                data: [
                  {
                    label: "全员",
                    value: "1"
                  },
                  {
                    label: "新用户",
                    value: "2"
                  },
                  {
                    label: "老用户",
                    value: "3"
                  },
                  {
                    label: "违规用户",
                    value: "4"
                  }
                ]
              }
            },
            {
              label: "通知内容",
              type: "textarea",
              key: "content",
              span: 22,
              placeholder: "请输入通知内容",
              maxlength: 200,
              showLimit: true,
              rules: {
                required: true,
                trigger: "blur",
                message: "通知内容不能为空"
              }
            }
          ]
        }
      ];
    },
    formPropsRole() {
      return [
        {
          forms: [
            {
              label: "所属角色",
              key: "role",
              slot: true,
              span: 24
            }
          ]
        }
      ];
    }
  }
};
